package stardecision.core;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class AppliactionRunnerTestCase {

	@Test
	public void validateDecisionTrueIsTrue() {
		
		ApplicationRunner applicationRunner = new ApplicationRunner();
		boolean actual = applicationRunner.validateDecision("yes");
		boolean expected = true;
		
		assertEquals(expected, actual);
	}
	
	@Test
	public void validateDecisionTrueIsFalse() {
		
		ApplicationRunner applicationRunner = new ApplicationRunner();
		boolean actual = applicationRunner.validateDecision("no");
		boolean expected = true;
		
		assertEquals(expected, actual);
	}
	
	@Test
	public void validateDecisionFalseIsTrue() {
		
		ApplicationRunner applicationRunner = new ApplicationRunner();
		boolean actual = applicationRunner.validateDecision("no");
		boolean expected = false;
		
		assertEquals(expected, actual);
	}
	
	@Test
	public void validateDecisionFalseIsFalse() {
		
		ApplicationRunner applicationRunner = new ApplicationRunner();
		boolean actual = applicationRunner.validateDecision("no");
		boolean expected = true;
		
		assertEquals(expected, actual);
	}

}
